package com.ning.ems.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author Ning 242741154@qq.com
 * @date 2020/4/28 9:30
 */
@Data
@ApiModel("DTO-Address-Update")
public class AddressUpdateDto implements Serializable {
    @ApiModelProperty("地址id")
    @NotNull(message = "地址id不能为空")
    private Integer id;

    @ApiModelProperty("联系方式")
    @NotNull(message = "联系方式不能为空")
    private String contactNumber;

    @ApiModelProperty("省份id")
    @NotNull(message = "省份id不能为空")
    private Integer province;

    @ApiModelProperty("确切地址")
    @NotNull(message = "确切地址不能为空")
    private String exactAddr;
}
